package com.gzs.learn.admin.config;

import com.gzs.learn.admin.clients.*;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * date:  2023/4/9
 * author:guanzhisong
 */
@Configuration
public class FeignClientMockConfig {
    @MockBean
    protected IPaymentClient paymentClient;

    @MockBean
    protected IPaymentQueryClient paymentQueryClient;

    @MockBean
    protected IPaymentWebClient paymentWebClient;

    @MockBean
    protected IPaymentWebQueryClient paymentWebQueryClient;

    @MockBean
    protected ISerialClient serialClient;
    @MockBean
    protected ISerialQueryClient serialQueryClient;

    @Bean
    public IPaymentClient paymentClient() {
        return paymentClient;
    }

    @Bean
    public IPaymentQueryClient paymentQueryClient() {
        return paymentQueryClient;
    }

    @Bean
    public IPaymentWebClient paymentWebClient() {
        return paymentWebClient;
    }

    @Bean
    public IPaymentWebQueryClient paymentWebQueryClient() {
        return paymentWebQueryClient;
    }

    @Bean
    public ISerialClient serialClient() {
        return serialClient;
    }

    @Bean
    public ISerialQueryClient serialQueryClient() {
        return serialQueryClient;
    }
}
